<template>
	<div class="header">
		<div class="flleft" @click="goback()">返回</div>
		<div class="flright">自定义</div>
		<div class="center">{{propsTitle}}</div>
	</div>
</template>

<script>
	export default{
		name:"header",
		data(){
			return{
				title:"导航"
			}
		},
		props:["propsTitle"],
		methods:{
			goback(){
				history.go(-1);
			}
		}
	}
</script>

<style>
	.header{
		width: 100%;
		height: 39px;
		line-height: 39px;
		position: fixed;
		top: 0px;
		left: 0px;
		background: white;
		border-bottom: 1px solid darkgray;
	}
	.header .flleft{
		float: left;
		margin-left: 10px;
	}
	.header .center{
		width: 50%;
		margin: auto;
	}
	.header .flright{
		float: right;
		margin-right: 10px;
	}
</style>